import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { AppComponent } from './app.component';



const routes: Routes = [
  { path: '', component: AppComponent,
    children: [
      { path: '', redirectTo: 'tabbar', pathMatch: 'full' },
      { path: 'tabbar', loadChildren: () => import('./tabbar/tabbar.module').then(m => m.TabbarModule)},
      { path: 'register', loadChildren: () => import('./register/register.module').then(m => m.RegisterModule)},
      { path: 'details', loadChildren: () => import('./details/details.module').then(m => m.DetailsModule)},
    ]
  }
];
@NgModule({
  imports: [RouterModule.forRoot(routes)],
  exports: [RouterModule]
})
export class AppRoutingModule { }
